package com.stcc.portal.controller.customer.demo;


import com.stcc.customer.bo.demo.DemoRsqBO;
import com.stcc.customer.service.demo.DemoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述:DemoController
 * 项目名:stcc_gl-parent
 * 包名:com.stcc.portal.controller.customer.demo
 * 作者:stcc
 * 创建时间:2021/4/16 14:20
 * 版本:1.0
 */

@Slf4j
@RestController
@RequestMapping(value = "customerDemo")
@Api(tags = "三户demo")
public class CustomerDemoController {

    @DubboReference
    DemoService demoService;


    @RequestMapping(value = "/getDemo",method = RequestMethod.POST)
    @ResponseBody
    @ApiOperation("获取demo")
    @ApiImplicitParam(name = "无入参")
    public DemoRsqBO getDemo(){
        return demoService.getDemo();
    }
}
